package com.ruoyi.base.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物品材料对象 sjz_materials
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
public class SjzMaterials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 物品_id */
    @Excel(name = "物品_id")
    private Long objectId;

    /** 名称 */
    @Excel(name = "名称")
    private String objectName;

    /** 长度 */
    @Excel(name = "长度")
    private Integer length;

    /** 宽度 */
    @Excel(name = "宽度")
    private Integer width;

    /** 等级 */
    @Excel(name = "等级")
    private Integer grade;

    /** 重量 */
    @Excel(name = "重量")
    private Double weight;

    /** primaryClass */
    @Excel(name = "primaryClass")
    private String primaryClass;

    /** 英文分类 */
    @Excel(name = "英文分类")
    private String secondClass;

    /** 中文分类 */
    @Excel(name = "中文分类")
    private String secondClassCn;

    /** 介绍 */
    @Excel(name = "介绍")
    private String desc;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String pic;

    /** pre图片地址 */
    @Excel(name = "pre图片地址")
    private String prePic;

    /** 平均价格 */
    @Excel(name = "平均价格")
    private Double avgPrice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }

    public void setObjectName(String objectName) 
    {
        this.objectName = objectName;
    }

    public String getObjectName() 
    {
        return objectName;
    }

    public void setLength(Integer length) 
    {
        this.length = length;
    }

    public Integer getLength() 
    {
        return length;
    }

    public void setWidth(Integer width) 
    {
        this.width = width;
    }

    public Integer getWidth() 
    {
        return width;
    }

    public void setGrade(Integer grade) 
    {
        this.grade = grade;
    }

    public Integer getGrade() 
    {
        return grade;
    }

    public void setWeight(Double weight) 
    {
        this.weight = weight;
    }

    public Double getWeight() 
    {
        return weight;
    }

    public void setPrimaryClass(String primaryClass) 
    {
        this.primaryClass = primaryClass;
    }

    public String getPrimaryClass() 
    {
        return primaryClass;
    }

    public void setSecondClass(String secondClass) 
    {
        this.secondClass = secondClass;
    }

    public String getSecondClass() 
    {
        return secondClass;
    }

    public void setSecondClassCn(String secondClassCn) 
    {
        this.secondClassCn = secondClassCn;
    }

    public String getSecondClassCn() 
    {
        return secondClassCn;
    }

    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }

    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }

    public void setPrePic(String prePic) 
    {
        this.prePic = prePic;
    }

    public String getPrePic() 
    {
        return prePic;
    }

    public void setAvgPrice(Double avgPrice) 
    {
        this.avgPrice = avgPrice;
    }

    public Double getAvgPrice() 
    {
        return avgPrice;
    }

    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("objectId", getObjectId())
            .append("objectName", getObjectName())
            .append("length", getLength())
            .append("width", getWidth())
            .append("grade", getGrade())
            .append("weight", getWeight())
            .append("primaryClass", getPrimaryClass())
            .append("secondClass", getSecondClass())
            .append("secondClassCn", getSecondClassCn())
            .append("desc", getDesc())
            .append("pic", getPic())
            .append("prePic", getPrePic())
            .append("avgPrice", getAvgPrice())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
